package com.ligure.service;

import com.ligure.spring.*;

@Component
public class MyUserService implements BeanNameAware, InitializingBean, MyUserInterface {

    private String beanName;

    @Autowired
    MyOrderService myOrderService;

    @Override
    public void myOrderService() {
        System.out.println(beanName + " MyUserService.myOrderService " + myOrderService);
    }

    @Override
    public void setBeanName(String name) {
        this.beanName = name;
        System.out.println(beanName + " MyUserService.setBeanName");
    }

    @Override
    public void afterPropertiesSet(){
        System.out.println(beanName + " MyUserService.afterPropertiesSet");
    }

}
